package com.you.common.exception;

import com.you.common.enums.ResponseEnum;

/**
 *Created by  liuya
 *2017/12/5
 */
public class UserException extends RuntimeException{
    private Integer code;

    public UserException(ResponseEnum responseEnum) {
        super(responseEnum.getMsg());
        this.code = responseEnum.getCode();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

}
